package com.coolingme.course;

import com.coolingme.course.courseinterface.ICourse;
import com.coolingme.course.courseinterface.INote;
import com.coolingme.course.courseinterface.IVideo;
import com.coolingme.course.courseinterface.impl.*;

/**
 * 桥接模式测试
 *
 * @author wangyue
 * @date 2020-09-20 17:45
 */
public class Test {

    public static void main(String[] args) {
        ICourse javaCourse = new JavaCourse();
        ICourse pythonCourse = new PythonCourse();

        IVideo javaVideo = new JavaVideo();
        IVideo pythonVideo = new PythonVideo();

        INote javaNote = new JavaNote();
        INote pythonNote = new PythonNote();

        RefindAbstractCourse javaCourseInfo = new RefindAbstractCourse(javaCourse, javaNote, javaVideo);
        RefindAbstractCourse pythonCourseInfo = new RefindAbstractCourse(pythonCourse, pythonNote, pythonVideo);

        javaCourseInfo.show();
        System.out.println("-------------------");
        pythonCourseInfo.show();

    }

}
